<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/cms/article/content" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body class="page page-content">
  <div class="datas">
    <div class="filterbar">
        <form action="{:URL('cms/Article/content',array('cid'=>$cid,'sid'=>$sid))}" method="post">
        <div id="J_addmenu" class="addmenu dropdown">
          <a href="{:URL('cms/Article/addcontent', array('sid'=>$sid,'cid'=>$cid,'classId'=>1,'type'=>'article'))}" class="btn">发布文章</a>
          <ul class="dropdown-menu">
            <volist name="modellist" id="model">
              <li><a href="javascript:;" data-name="{$model['class_alia_name']}" data-id="{$model['id']}">发{$model['class_name']}</a>
              </li>
            </volist>
          </ul>
        </div>

        <input type="checkbox" name="selectAll" id="" value="all" <eq name="selectAll" value="all">checked</eq>/>全部栏目
        <input type="checkbox" name="relatednode" id="" value="true" <eq name="relatednode" value="true">checked</eq>/>含有相关节点
        <select name="sh" class="select">
          <option value="">审核状态</option>
          <option value="1" <eq name="sh" value="1">selected</eq>>已审核</option>
          <option value="0" <eq name="sh" value="0">selected</eq>>未审核</option>
        </select>
        <label for="">作者</label>
        <input type="text" name="author" id="title" value="{$Think.request.author}" class="input-text" style="width:60px;" />
        <label for="">发布者</label>
        <input type="text" name="create_uname" id="create_uname" value="{$Think.request.create_uname}" class="input-text" style="width:60px;" />
        <label for="">文章ID</label>
        <input type="text" name="id" id="id" value="{$Think.request.id}" class="input-text" style="width:60px;" />
        <label for="">标题</label>
        <input type="text" name="title" id="title" value="{$Think.request.title}" class="input-text" />
        <button type="submit" class="btn-search" title="搜索">
          <i class="icon-search"></i>
        </button>
      </form>
    </div>

    <div class="datas-bd">
      <table class="table">
        <thead>
          <tr>
            <th style="width:30px">
              <input type="checkbox" class="toggle-all" />
            </th>
            <th style="">类型</th>
            <th style="">标题</th>
            <th style="">阅读量</th>
            <th style="">作者</th>
            <th style="">发布人</th>
            <th style="width:120px">修改时间</th>
            <th style="">审核状态</th>
            <th style="">排序</th>
            <th style="width:190px">操作</th>
          </tr>
        </thead>
        <tbody>
          <volist name="list" id="vo">
            <tr data-id="{$vo['id']}">
              <td>
                <input type="checkbox" class="toggle" >
              </td>
              <td>
                <eq name="vo.istransfer" value="1">
                  转载
                  <else/>
                  {:get_article_type($vo['classid'])}
                </eq>
              </td>
              <td>
              <if condition="$vo['status'] eq '1'">
                <a href="{$vo['contenturl']}" target="_blank">
              <else/>  
              	<a href="{$vo['contenturl']}">
              </if>
                  <if condition="$vo['is_color'] eq '1'">
                    <font color="red">{$vo['title']}</font>
                    <else/>{$vo['title']}
                  </if>
                </a>
                <neq name="vo.imageurl" value="">
                  <img src="./apps/cms/Appinfo/img.gif">
                </neq>
                 <neq name="vo.related_node_list" value="">
                  <img src="./apps/cms/Appinfo/ico_app.gif">
                </neq>
                <eq name="vo.is_recommend" value="1">
                  <img src="./apps/cms/Appinfo/recommend.gif">
                </eq>
                <eq name="vo.is_top" value="1">
                  <img src="./apps/cms/Appinfo/top.gif">
                </eq>
                <eq name="vo.is_hot" value="1">
                  <img src="./apps/cms/Appinfo/hot.gif">
                </eq>
              </td>
              <td>{$vo['readpoint']}</td>
              <td>{$vo['author']}</td>
              <td>{$vo['create_uname']}</td>
              <td>{$vo['updatetime']|date="Y-m-d H:i",###}</td>
              <td>
                <if condition="$vo['status'] eq '0'">
                  草稿
                  <elseif condition="$vo['status'] eq '-1'" />已删除
                  <elseif condition="$vo['classid'] eq '2'" />审核失败
                  <else/>终稿
                </if>
              </td>
              <td>
                <a href="javascript:;" class="moveup" title="向上移动"></a>
                <a href="javascript:;" class="movedown" title="向下移动"></a>
              </td>
              <td>
                <eq name="vo['status']" value='1'><a href="#" data-url="{:URL('admin/Circle/articleAsCircleMessage',array('article_id'=>$vo['id'],'content_url'=>$vo['contenturl']))}" class="send_as_message">发送到播报</a> |</eq>
                <a href="{:URL('cms/Article/addcontent',array('id'=>$vo['id'],'type'=>$vo['classid'],'sid'=>$sid))}&jumpUrl={$jumpUrl}" class="A_edit">修改</a> |
                <a href="javascript:;" class="A_del">删除</a>
                <if condition="$vo['status'] eq '1'">
                  | <a href="{:URL('admin/Push/apppush',array('ids'=>$vo['id'],'sid'=>$sid,'cid'=>$cid))}" class="ico_top">推送</a>
                </if>
              </td>
            </tr>
          </volist>
        </tbody>
      </table>
    </div>

    <div class="datas-ft">
      <div class="actions">
        <a href="javascript:;" class="btn" id="J_review">审核</a>
        <a href="javascript:;" class="btn" id="J_generate" data-jumpurl="{$jumpUrl}">生成</a>
        <a href="javascript:;" class="btn" id="J_del">删除</a>
        <a href="javascript:;" class="btn" id="J_push">推送</a>
        <a href="javascript:;" class="btn" id="J_block">设置区块</a>
      </div>
      <div class="pager">{$page}</div>
    </div>
  </div>

  </div>
</body>

</html>
